<script lang="tsx">
import {Component, Vue, Model} from 'vue-property-decorator'
import Child from "./Child.vue"
@Component
export default class App extends Vue {
    // 函数式组件


    render() {
        const ABC11 = (prop: any, context: any) => {
            console.log(prop)
            console.log(prop.props.name)
            console.log(context)
            return (
                <h2>你好</h2>
            )
        }
        return (
            <div>
                dfdf
                <hr/>
                <input type="text" v-model={this.val}/>
                <hr/>
                <ABC11 props={{
                    name : "d"
                }}></ABC11>
            </div>
        )
    }

    val!: string
}
</script>

<style scoped>
#app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
}
</style>
